﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="LoginFixedGear.ascx.cs"
    Inherits="VINETLIFE.Module.LoginFixedGear" %>
<style type="text/css">
    #fxlogin
    {
        display: block;
    }
    #fxnotlogin
    {
        display: none;
    }
    #divLoading
    {
        display: none;
    }
    #divLoading
    {
        overflow: hidden;
        margin: 5px 0 0 0;
        width: 100%;
    }
    #divLoading p
    {
        color: #000;
        font-size: 13px;
        margin: 5px;
        text-align: center;
    }
    #divLoading img
    {
        margin: 5px 40px;
    }
</style>
<script type="text/javascript">
    $(document).ready(function () {
        $('#rdLogin').click(function () {
            $('#fxlogin').slideToggle("slow");
            $('#fxnotlogin').slideUp("slow");
            $('#spanEror').text('');
        })
        $('#rdNotLogin').click(function () {
            $('#fxnotlogin').slideToggle("slow");
            $('#fxlogin').slideUp("slow");
            $('#spanEror').text('');
        })
    })

</script>
<script type="text/javascript">
    $(document).ready(function () {
        $("#fxlogin").validate({
            errorElement: "span", // Định dạng cho thẻ HTML hiện thông báo lỗi
            rules: {
                cpassword: {
                    equalTo: "#password" // So sánh trường cpassword với trường có id là password
                }
            }
        });
    });
</script>
<div id="login_to_pop_up">
    <span class="b-close"><span>X</span></span>
    <div class="your-cart-boxxxx">
        <div class="y-cart-title" id="divTuyChonTitle">
            <span id="spanTuyChonTitle">Vui lòng chọn</span>
        </div>
        <div class="y-cart-row" id="divTuyChon">
            <p>
                <input type="radio" name="groupX" checked="checked" value="login" id="rdLogin" title="" />&nbsp;&nbsp;
                Đăng nhập
            </p>
            <p>
                <input type="radio" name="groupX" value="withoulogin" id="rdNotLogin" title="" />&nbsp;&nbsp;
                Sử dụng không cần tài khoản
            </p>
        </div>
        <div id="fxlogin">
            <p>
                <span id="spanEror"></span>
            </p>
            <div class="y-cart-row">
                <span class="y-c-r-label">Tên đăng nhập<span class="rq"> * </span></span>
                <input type="text" id="txtUserName" class="input-login required" />
            </div>
            <div class="y-cart-row">
                <span class="y-c-r-label">Mật khẩu</span><input type="password" class="input-login"
                    id="txtPassword" />
            </div>
            <p class="y-c-detail-box">
                <input type="button" id="btnLogin" style="margin-left: 120px; float: left !important;
                    border: none;" onclick="loginX(txtUserName.value,txtPassword.value); return false;"
                    class="y-c-detail" value="Đăng nhập" />
                <input id="popupLoginclose" style="margin-right: 5px; border: none;" type="button"
                    value="Thoát" class="y-c-detail" />
            </p>
        </div>
        <div id="fxnotlogin">
            <div class="y-cart-row">
                <span class="y-c-r-label">Họ tên *</span><input type="text" id="txtName" class="input-login" />
            </div>
            <div class="y-cart-row">
                <span class="y-c-r-label">Email *</span><input type="text" id="txtEmail" class="input-login" />
            </div>
            <div class="y-cart-row">
                <span class="y-c-r-label">Điện thoại *</span><input type="text" id="txtPhone" class="input-login" />
            </div>
            <div class="y-cart-row">
                <span class="y-c-r-label">Địa chỉ *</span><input type="text" id="txtAddress" class="input-login" />
            </div>
            <p class="y-c-detail-box">
                <input type="button" id="withoutLoginButton" style="float: left !important; margin-left: 120px;
                    border: none;" onclick="SendWithoutLogin(txtName.value,txtEmail.value,txtPhone.value,txtAddress.value); return false;"
                    class="y-c-detail" value="Gửi yêu cầu" />
                <input id="popupLogincloseX" style="border: none; margin-right: 5px;" type="button"
                    value="Thoát" class="y-c-detail" />
            </p>
        </div>
        <div id="divLoading">
            <img alt="loading" title="loading" src="/images/loading.gif" />
            <p>
                Đang xử lý dữ liệu...</p>
        </div>
    </div>
</div>
